package com.ruoyi.sys.security.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.security.mapper.TbPatrollingRecordMapper;
import com.ruoyi.sys.security.domain.TbPatrollingRecord;
import com.ruoyi.sys.security.service.ITbPatrollingRecordService;

/**
 * 巡更记录Service业务层处理
 * 
 * @author iuxin
 * @date 2022-05-25
 */
@Service
public class TbPatrollingRecordServiceImpl implements ITbPatrollingRecordService 
{
    @Autowired
    private TbPatrollingRecordMapper tbPatrollingRecordMapper;

    /**
     * 查询巡更记录
     * 
     * @param prId 巡更记录主键
     * @return 巡更记录
     */
    @Override
    public TbPatrollingRecord selectTbPatrollingRecordByPrId(Long prId)
    {
        return tbPatrollingRecordMapper.selectTbPatrollingRecordByPrId(prId);
    }

    /**
     * 查询巡更记录列表
     * 
     * @param tbPatrollingRecord 巡更记录
     * @return 巡更记录
     */
    @Override
    public List<TbPatrollingRecord> selectTbPatrollingRecordList(TbPatrollingRecord tbPatrollingRecord)
    {
        return tbPatrollingRecordMapper.selectTbPatrollingRecordList(tbPatrollingRecord);
    }

    /**
     * 新增巡更记录
     * 
     * @param tbPatrollingRecord 巡更记录
     * @return 结果
     */
    @Override
    public int insertTbPatrollingRecord(TbPatrollingRecord tbPatrollingRecord)
    {
        return tbPatrollingRecordMapper.insertTbPatrollingRecord(tbPatrollingRecord);
    }

    /**
     * 修改巡更记录
     * 
     * @param tbPatrollingRecord 巡更记录
     * @return 结果
     */
    @Override
    public int updateTbPatrollingRecord(TbPatrollingRecord tbPatrollingRecord)
    {
        return tbPatrollingRecordMapper.updateTbPatrollingRecord(tbPatrollingRecord);
    }

    /**
     * 批量删除巡更记录
     * 
     * @param prIds 需要删除的巡更记录主键
     * @return 结果
     */
    @Override
    public int deleteTbPatrollingRecordByPrIds(Long[] prIds)
    {
        return tbPatrollingRecordMapper.deleteTbPatrollingRecordByPrIds(prIds);
    }

    /**
     * 删除巡更记录信息
     * 
     * @param prId 巡更记录主键
     * @return 结果
     */
    @Override
    public int deleteTbPatrollingRecordByPrId(Long prId)
    {
        return tbPatrollingRecordMapper.deleteTbPatrollingRecordByPrId(prId);
    }
}
